import tkinter as tk
window = tk.Tk()
window.title('Generate')
window.geometry('500x300')
def hi():
    print('hi')
b = tk.Button(window,text='hitme',command = hi)
b.pack()
# b.place()
window.mainloop()